package com.yilin.tms.order.service.payment;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.application.PageData;
import com.yilin.tms.core.entity.capital.TradeRecord;
import com.yilin.tms.core.entity.order.clearing.ClearingDetail;
import com.yilin.tms.core.entity.order.payment.ServicePaymentCost;
import com.yilin.tms.core.entity.order.transit.TransitOrder;
import com.yilin.tms.core.entity.user.account.Account;

import java.util.List;

//服务费用单
public interface IServicePaymentCostService  extends IService<ServicePaymentCost> {
    void updateServicePaymentResult(Account loginUser,TradeRecord tradeRecord);

    ServicePaymentCost generateServicePayment(ServicePaymentCost.ServicePlatType platType, ClearingDetail clearingDetail);

//    ServicePaymentCost generateServicePayment(ServicePaymentCost.ServicePlatType platType, TradeRecord tradeRecord);

    ServicePaymentCost getServicePaymentCostBySourceOrderId(ServicePaymentCost.ServicePlatType servicePlatType, String transitOrderId);

    List<ServicePaymentCost> getServicePaymentListByIds(List<String> servicePaymentIds);

    PageData<ServicePaymentCost> getServicePaymentCostPage(ServicePaymentCost query, Account loginUser, Integer page, Integer limit);

}
